package com.zjj.spring.read.xml.factorybean.factory;

public class CarBuilder {
	
	String name;
	
	public static CarBuilder builder() {
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		CarBuilder cb = new CarBuilder();		
		return cb;
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Car factory() {
		return new Car(this.name);
	}
	
	

}
